import moment from 'moment'

export const formatDate = (
  string = Date.now(),
  format = 'YYYY-MM-DD  hh:mm:ss'
) => moment(string).format(format)
